package com.sc.nft.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddMenuDTO {

    @ApiModelProperty(value = "列表名称")
    @NotBlank(message = "列表名称不能为空")
    private String name;

    @ApiModelProperty(value = "路由地址")
    private String route;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "类型 1:菜单 2:按钮")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "按钮编码")
    private String code;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态 0:禁用 1:启用")
    private Integer status;

    @ApiModelProperty(value = "图标")
    @NotBlank(message = "图标不能为空")
    private String icon;
}
